<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>花样滑冰</title>
    <style>

* {
            padding: 0;
            margin: 0;
        }

        .wrapper {
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100vh;
            padding: 0 24%;
            background: #f7f7f7;
            overflow-y: hidden;
        }

        .container {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: hidden;
            background: #4291a7;
        }

        .banner {
            position: relative;
            width: 100%;
            height: 25%;
            background: pink;
        }

        .banner-img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }

        .img-select {
            display: block;
        }

        .dots {
            position: absolute;
            display: flex;
            bottom: 20px;
            right: 20px;
            width: 120px;
            height: 16px;
            list-style: none;
            gap: 10px;
        }

        .dot {
            width: 14px;
            height: 14px;
            line-height: 14px;
            font-size: 12px;
            border-radius: 50%;
            background: #fff;
            color: #000;
            text-align: center;
            cursor: pointer;
        }

        .dot-select {
            background: red;
        }

        .logo {
            box-sizing:border-box;
            display: flex;
            align-items: center;
            padding: 0 10px;
            width: 100%;
            height: 5%;
        }

        .logo-img {
            height: 80%;
            object-fit: cover;
            margin-right: 10px;
        }

        .logo-name {
            line-height: 100%;
            color: #fff;
        }



        .nav {
            box-sizing: border-box;
            display: flex;
            padding: 0 30px;
            width: 100%;
            height: 4%;
            list-style: none;
            background: #206e85;
            gap: 12px;
        }

        .nav>li {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 10%;
            height: 100%;
            line-height: 100%;

        }

        .nav>li>a {
            color: #fff;
            text-decoration: none;
        }

        main {
            display:flex;
            flex-direction: column;
            box-sizing: border-box;
            align-items: center;
            flex: 1;
            width: 100%;
            padding: 10px 30px;
            overflow:auto;
            gap:30px;
        }

        .title{
            width:100%;
            font-size:24px;
            line-height:48px;
            font-weight:700;
            color:#fff;
            text-align:center;
        }

        input{
            width:20%;
            border-color:#fff;
            border-radius:20px;
            /* border:0; */
            background:transparent;
            border:1px solid #fff;
            padding:8px 8px;
        }
        button{
            width:22%;
            background:#000;
            color:#fff;
            border-radius:20px;
            padding:8px;
        }
        
       

        footer {
            display:flex;
            align-items:center;
            width: 100%;
            height: 5%;
            background: #283043;
        }

        .list {
            display:flex;
            justify-content: space-evenly;
            align-items: center;
            width: 100%;
            /* padding:6px 0; */
            list-style: none;
            gap: 12px;
            font-size:14px;
            color:#fff;
        }
       
    </style>
</head>

<body>
    <div class="wrapper">
        <div class="container">
            <div class="banner">
                <img class="banner-img img-select" src="./images/img-01.jpg">
                <img class="banner-img" src="./images/img-02.jpg">
                <img class="banner-img" src="./images/img-03-01.png">
                <ul class="dots">
                    <li class="dot dot-select" onClick="changeImg(0)">1</li>
                    <li class="dot" onClick="changeImg(1)">2</li>
                    <li class="dot" onClick="changeImg(2)">3</li>
                </ul>
            </div>
            <div class="logo">
                <img class="logo-img" src="./images/logo.png">
                <span class="logo-name">花样滑冰</span>
            </div>
            <ul class="nav">
                <li>
                    <a href="./index.html">首页</a>
                </li>
                <li>
                    <a href="./star.html">明星简介</a>
                </li>
                <li>
                    <a href="./video.html">视频欣赏</a>
                </li>
                <li>
                    <a href="./tech.html">运动特点</a>
                </li>
                <li>
                    <a href="#">登录页</a>
                </li>
            </ul>
            <main>
                <div class="title">登录页</div>
                <input placeholder="账号" />
                <input placeholder="密码" />
                <button>登录</button>
            </main>

            <footer>
                <ul class="list">
                    <li>邮件反馈</li>
                    <li>企业推广</li>
                    <li>帮助中心</li>
                    <li>版权所有@花样滑冰</li>
                    <li>2024年6月14日</li>
                </ul>
            </footer>
        </div>
    </div>
</body>

<script>
    const dotDoms = document.querySelectorAll('.dot')
    const imgDoms = document.querySelectorAll('.banner-img')
    function changeImg(index) {
        imgDoms.forEach((img, number) => {
            img.classList.remove('img-select')
            if (number === index) {
                img.classList.add('img-select')
            }
        })
        dotDoms.forEach((dot, number) => {
            dot.classList.remove('dot-select')
            if (number === index) {
                dot.classList.add('dot-select')
            }
        })
    }
</script>

</html>